<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="消息接收人员" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script src="/js/popup_ext.js"></script>
<script language="javascript">
	function doNew(){
		var url="/base/StafferMainForSelect.ihtm";
		ShowIframe("选择员工",url,800,500,"doNewCallBack()",300,400);
	}
	function doNewCallBack(){
		if(popRetVal!=null){
			var arr=popRetVal.split(";");
			window.location="/sms/SmsReceiverAdd.ihtm?alert_id=${smsAlert.id}&receiver_id="+arr[0];
		}
	}
	function doDelete(id){
		ShowConfirm('确认框','确定删除吗？',260,80,"doDeleteCallBack("+id+")");
	}
	function doDeleteCallBack(id){
		if(popRetVal!=null){
			var url="/purchase/PurchaseBillExamine.ihtm?id_str="+id+"&flag=1";
			window.location="/sms/SmsReceiverDel.ihtm?id="+id+"&alert_id=${smsAlert.id}";
		}
	}
	function doCancel(){
		window.close();
	}
</script>
</head>
<body oncontextmenu="return false" class="sheet" style="text-align:center;">
<div class="sheet-main" style="width:260px;text-align:left;margin:auto;">
  <div class="sheet-top">
    <div class="content">
      <h2>消息接收人员</h2>
      <p>消息内容：${smsAlert.title}</p>
    </div>
  </div>
  <div class="sheet-list">
    <div class="search-business">
	    <div class="add_content"> 	
	    	 <div align="right"><input type="button" class="buttom search-add" value=" 新 增" onClick="doNew();"></div>
	     </div>
		 <%@include file="../inc/AlertMsg.jsp"%>
	     <div class="table-list">
	        <table width="100%">
	          <tr>
					<th width="180" >姓名</th>
					<th >操作</th>
				</tr>
				<c:forEach var="item" items="${list}">
				<tr>
					<td >${item[1].stafferName}<${item[1].mobile}></td>
					<td >
						<a href="javascript:doDelete('${item[0].id}');">删除</a>
					</td>
				</tr>
				</c:forEach>
			</table>
	      </div>  
	   </div>  
  </div>
  <div class="blank12"></blank>
</div>
</body>
</html>